package com.example.androidawe

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<TextView>(R.id.title).setOnClickListener {
            val values = (0..20).map { it.toString() }.toTypedArray()
            ValuePickerBuilder()
                .title("请选择")
                .values(values)
                .confirm {

                }
                .build()
                .showDialog(supportFragmentManager)
        }

        println("111")
        println("222")
        println("333")
        println("444")
    }
}